<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <h3>你的屏幕：</h3>
  <script>
    document.write(`宽度:${screen.width}高度：${screen.height}`)
    document.write('<br>')
    document.write(`浏览器代号${navigator.appCodeName},浏览器名称${navigator.appName}`)
    document.write('<br>')
    document.write(location.pathname)
    // 刷新当前页面
    // history.go(0)
  </script>
</body>

</html>